<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 296px;height: 180px;
            margin: 100px auto;
            position: relative;
        }
        div:hover::before{
            content: "";
            width: 100%;
            height: 100%;
            border: 10px solid rgba(255, 255, 255, 0.3);
            display: block;
            position: absolute;
            box-sizing: border-box;
            
        }
    </style>
</head>
<body>
    <div>
        <img src="../images/mi.jpg" alt="" srcset="">
    </div>
</body>
</html>